import os
from flask import Flask
from flask_migrate import MigrateCommand

from api import create_app
from flask_script import Manager

app = create_app(os.environ.get('FLASK_ENV') or 'default')
manager = Manager(app=app)
manager.add_command("db", MigrateCommand)
if __name__ == '__main__':
    app.run()
